.add-goods-container {
  padding: 30rpx;
  background-color: #f8f8f8;
  min-height: 100vh;
  box-sizing: border-box;
  padding-bottom: calc(140rpx + env(safe-area-inset-bottom));
  
  .goods-form {
    background-color: #fff;
    border-radius: 16rpx;
    padding: 40rpx 30rpx;
    box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
    
    .form-title {
      font-size: 32rpx;
      font-weight: 600;
      color: #333;
      margin-bottom: 40rpx;
      position: relative;
      padding-left: 24rpx;
      
      &::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 6rpx;
        height: 28rpx;
        background: #3c9cff;
        border-radius: 6rpx;
      }
    }
    
    .form-item {
      margin-bottom: 40rpx;
      
      .label {
        display: block;
        font-size: 28rpx;
        color: #333;
        margin-bottom: 16rpx;
        
        &.required::before {
          content: '*';
          color: #ff5722;
          margin-right: 8rpx;
        }
      }
      
      .sub-label {
        display: block;
        font-size: 24rpx;
        color: #999;
        margin-bottom: 16rpx;
      }
      
      .input {
        width: 100%;
        height: 88rpx;
        border: 2rpx solid #eee;
        border-radius: 8rpx;
        padding: 0 24rpx;
        font-size: 28rpx;
        box-sizing: border-box;
        background: #fafafa;
        
        &:focus {
          border-color: #3c9cff;
          background: #fff;
        }
      }
      
      .category-picker {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 88rpx;
        border: 2rpx solid #eee;
        border-radius: 8rpx;
        padding: 0 24rpx;
        background: #fafafa;
        
        .picker-text {
          font-size: 28rpx;
          color: #333;
          
          &.placeholder {
            color: #999;
          }
        }
        
        .iconfont {
          font-size: 32rpx;
          color: #999;
        }
      }
      
      .textarea {
        width: 100%;
        height: 200rpx;
        border: 2rpx solid #eee;
        border-radius: 8rpx;
        padding: 24rpx;
        font-size: 28rpx;
        box-sizing: border-box;
        background: #fafafa;
        
        &:focus {
          border-color: #3c9cff;
          background: #fff;
        }
      }
      
      .upload-list {
        display: flex;
        flex-wrap: wrap;
        gap: 24rpx;
        
        .upload-item {
          position: relative;
          width: 160rpx;
          height: 160rpx;
          margin-right: 20rpx;
          margin-bottom: 20rpx;
          border-radius: 8rpx;
          overflow: hidden;
          
          image {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
          
          .delete-btn {
            position: absolute;
            top: 0;
            right: 0;
            width: 40rpx;
            height: 40rpx;
            line-height: 36rpx;
            text-align: center;
            background-color: rgba(0, 0, 0, 0.5);
            color: #fff;
            font-size: 32rpx;
            z-index: 1;
          }
          
          .image-index {
            position: absolute;
            left: 0;
            top: 0;
            padding: 4rpx 12rpx;
            background-color: rgba(60, 156, 255, 0.8);
            color: #fff;
            font-size: 24rpx;
            z-index: 1;
          }
        }
        
        .upload-btn {
          width: 180rpx;
          height: 180rpx;
          border: 2rpx dashed #ddd;
          border-radius: 8rpx;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          background: #fafafa;
          
          .iconfont {
            font-size: 48rpx;
            color: #999;
            margin-bottom: 8rpx;
          }
          
          .upload-text {
            font-size: 24rpx;
            color: #999;
          }
          
          &:active {
            background: #f5f5f5;
          }
        }
      }
      
      .unit {
        font-size: 28rpx;
        color: #666;
        padding: 0 12rpx;
      }
      
      .input + .unit {
        & + .input {
          padding-right: 64rpx;
        }
      }
    }
  }
}

.goods-form + .goods-form {
  margin-top: 30rpx;
}

.radio-group {
  display: flex;
  gap: 20rpx;
  
  .radio-item {
    flex: 1;
    height: 80rpx;
    border: 2rpx solid #eee;
    border-radius: 8rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28rpx;
    color: #666;
    background: #fafafa;
    
    &.active {
      background: #ecf5ff;
      border-color: #3c9cff;
      color: #3c9cff;
    }
  }
}

.result-text {
  font-size: 32rpx;
  color: #333;
  font-weight: 500;
  padding: 20rpx 0;
}

.payment-detail {
  background: #f8f8f8;
  border-radius: 8rpx;
  padding: 20rpx;
  
  .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 28rpx;
    color: #666;
    margin-bottom: 16rpx;
    
    &:last-child {
      margin-bottom: 0;
    }
    
    .value {
      color: #333;
      font-weight: 500;
    }
  }
  
  .error {
    color: #ff5722;
    font-size: 24rpx;
    width: 100%;
    text-align: center;
  }
}

.submit-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 140rpx;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), #ffffff);
	backdrop-filter: blur(10px);
	padding: 20rpx 40rpx calc(20rpx + env(safe-area-inset-bottom));
	box-sizing: border-box;
	z-index: 99;
	
	.submit-btn {
		height: 90rpx;
		border-radius: 45rpx;
		background: linear-gradient(90deg, #3c9cff, #5dabff);
		display: flex;
		align-items: center;
		justify-content: center;
		box-shadow: 0 4rpx 16rpx rgba(60, 156, 255, 0.3);
		position: relative;
		overflow: hidden;
		
		&::after {
			content: '';
			position: absolute;
			top: 0;
			left: 0;
			right: 0;
			height: 50%;
			background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
		}
		
		text {
			color: #fff;
			font-size: 32rpx;
			font-weight: 600;
			letter-spacing: 2rpx;
			position: relative;
			z-index: 1;
		}
		
		&:active {
			transform: scale(0.98);
			box-shadow: 0 2rpx 8rpx rgba(60, 156, 255, 0.2);
		}
	}
}
